/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.msk.sys.service;

import com.msk.sys.domain.MaterialDetail;
import com.msk.sys.mapper.MaterialDetailDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 字典Service
 * @author ThinkGem
 * @version 2014-05-16
 */
@Service
@Transactional(readOnly = true)
public class MaterialDetailService extends CrudService<MaterialDetailDao, MaterialDetail> {

    /**
     * 按运单Id删除物料明细
     * @param transportId
     * @return
     */
    @Transactional(readOnly = false)
    public int deleteByTspId(String transportId) {
        return dao.deleteByTspId(transportId);
    }
}
